package com.wee.cronos.client.core.presenter;

 import com.google.web.bindery.event.shared.EventBus;
import com.google.gwt.event.shared.GwtEvent.Type;
import com.google.inject.Inject;
import com.gwtplatform.mvp.client.Presenter;
import com.gwtplatform.mvp.client.View;
import com.gwtplatform.mvp.client.annotations.ContentSlot;
import com.gwtplatform.mvp.client.annotations.ProxyStandard;
import com.gwtplatform.mvp.client.proxy.Proxy;
import com.gwtplatform.mvp.client.proxy.RevealContentHandler;
import com.gwtplatform.mvp.client.proxy.RevealRootContentEvent;

public class WorkspacePresenter extends Presenter<WorkspacePresenter.WorkspaceView, WorkspacePresenter.WorkspaceProxy>
{
	@ContentSlot
	public static final Type<RevealContentHandler<?>> TYPE_RevealProjectMagenent = new Type<RevealContentHandler<?>>();

  	public interface WorkspaceView extends View {}
  	
  	@ProxyStandard
  	public interface WorkspaceProxy extends Proxy<WorkspacePresenter> {}
  	
  	@Inject
  	public WorkspacePresenter(final EventBus eventBus, final WorkspaceView view, final WorkspaceProxy proxy) 
	{
		super(eventBus, view, proxy);
	}
  	
	@Override
	protected void revealInParent() 
	{
		RevealRootContentEvent.fire(this, this);
	}
}
